/* Custom CSS Variables */

:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #d69e2e;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --error-color: #e53e3e;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --white: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #a0aec0;
    --border-color: #e2e8f0;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #f6ad55);
    --font-primary: 'Caudex', sans-serif;
}


/* Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

.h1,
h2 {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}


/* Scroll Snap Container */

.snap-container {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: 100vh;
}

.section {
    scroll-snap-align: start;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}


/* Floating Corner Elements */

.corner-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.corner-element {
    position: absolute;
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.1;
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.top-left {
    top: 20%;
    left: 5%;
    animation-name: float-diagonal;
    animation-delay: 0s;
}

.top-left-2 {
    top: 10%;
    left: 10%;
    animation-name: rotate-float;
    animation-delay: 2s;
}

.bottom-right {
    bottom: 20%;
    right: 5%;
    animation-name: bounce-rotate;
    animation-delay: 1s;
}

.bottom-right-2 {
    bottom: 10%;
    right: 10%;
    animation-name: pulse-float;
    animation-delay: 3s;
}


/* Corner Element Animations */

@keyframes float-diagonal {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(0, -40px) rotate(180deg);
    }
    75% {
        transform: translate(-20px, -20px) rotate(270deg);
    }
}

@keyframes rotate-float {
    0%,
    100% {
        transform: rotate(0deg) translateY(0px);
    }
    50% {
        transform: rotate(180deg) translateY(-30px);
    }
}

@keyframes bounce-rotate {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(90deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
    }
}

@keyframes pulse-float {
    0%,
    100% {
        transform: scale(1) translateX(0px);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2) translateX(-20px);
        opacity: 0.2;
    }
}


/* Navigation */

.navbar {
    background: rgba(8, 27, 79, 0.333);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1px 0;
}

.navbar.scrolled {
    background: var(--primary-color);
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}


/* Hero Section */

.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* full cover */
    background: rgba(0, 0, 0, 0.5);
    /* black overlay with 50% opacity */
    z-index: 1;
}

.hero-content {
    animation: slideInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.text-accent {
    color: hwb(39 0% 22%);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: var(--white);
    position: relative;
    animation: scroll-bounce 2s infinite;
}

.scroll-arrow:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
}

@keyframes scroll-bounce {
    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.7;
    }
}


/* Section Titles */

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}


/* About Section */

.about-section {
    margin-top: -5%;
    background: var(--white);
    padding: 5rem 0;
}

.about-content {
    padding-right: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-heavy);
}


/* Mobile responsive adjustment */

@media (max-width: 992px) {
    /* Bootstrap lg breakpoint */
    .about-section .row {
        flex-direction: column;
        /* stack text and image vertically */
        align-items: flex-start;
        /* align text to left */
    }
    .about-section .about-image-wrapper {
        margin-top: 280px;
        /* space between text/stats and image */
        text-align: center;
        /* center image */
    }
    .about-section .about-image img {
        width: 150%;
        /* reduce image size */
        max-width: 400px;
        /* optional maximum width */
        height: auto;
        /* maintain aspect ratio */
    }
    /* Shimmer + Glass Effect */
    .about-image-wrapper {
        perspective: 1000px;
        /* gives a 3D depth to child elements */
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
    }
    /* 3D Cube style */
    .about-image.back {
        position: relative;
        transform-style: preserve-3d;
        /* allows children to render in 3D */
        width: 250px;
        /* cube width */
        height: 250px;
        /* cube height */
        transition: transform 0.5s ease, box-shadow 0.5s ease;
    }
    /* The image itself */
    .about-image.back img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        /* floating shadow */
        transform: translateZ(20px);
        /* gives thickness/depth */
        transition: transform 0.5s ease;
    }
    /* Optional: hover floating effect */
    .about-image.back:hover img {
        transform: translateZ(40px) rotateX(5deg) rotateY(5deg);
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4);
    }
    /* Optional: extra edges */
    .about-image.back::before,
    .about-image.back::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 2px solid rgba(255, 255, 255, 0.4);
        /* edge highlight */
        border-radius: 12px;
        pointer-events: none;
        transform: translateZ(-10px);
    }
    /* Glass shimmer overlay */
    .about-image::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 120deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.2) 100%);
        transform: rotate(25deg);
        animation: shimmer 3s infinite;
        pointer-events: none;
        overflow: hidden;
    }
}


/* Keep text and image side by side */

.row.align-items-center {
    display: flex;
    flex-wrap: nowrap;
    /* prevent wrapping */
}


/* Optional: add spacing so text is not stuck to left */

.col-lg-6:first-child {
    padding-right: 30px;
}


/* Make image responsive */

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* Default hidden state */

.animate-heading,
.animate-text,
.animate-number {
    opacity: 0;
    transform: translate(-20px, 20px) rotate(-3deg);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}


/* Start animation (when in viewport) */

.start-animation {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
}


/* Delay each item */

.animate-heading.start-animation {
    transition-delay: 0.2s;
}

.animate-text.start-animation {
    transition-delay: 0.5s;
}

.animate-number.start-animation:nth-child(1) {
    transition-delay: 0.8s;
}

.animate-number.start-animation:nth-child(2) {
    transition-delay: 1s;
}

.animate-number.start-animation:nth-child(3) {
    transition-delay: 1.2s;
}


/* Responsive tweaks (keep these) */

@media (max-width: 992px) {
    .col-lg-6:first-child {
        padding-right: 20px;
    }
}

@media (max-width: 576px) {
    .col-lg-6:first-child {
        padding-right: 10px;
    }
}


/* Portfolio Section */

.portfolio-section {
    background: var(--light-color);
    padding: 5rem 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.portfolio-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.portfolio-item.large .portfolio-image {
    height: 100%;
    min-height: 600px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 0.9;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    text-align: center;
    color: var(--white);
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-content h4,
.portfolio-content h5 {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 0.5rem;
}

.portfolio-content .fas {
    font-size: 2rem;
    margin-top: 1rem;
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.portfolio-item:hover .portfolio-content .fas {
    opacity: 1;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        /* single column */
        gap: 1rem;
    }
    /* Reset large items to normal span */
    .gallery-item.large {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    /* Make all images uniform height and prevent overflow */
    .gallery-item img,
    .gallery-item.large img {
        height: auto !important;
        min-height: 0 !important;
        object-fit: cover;
    }
}


/* Services Section */

.services-section {
    background: var(--white);
    padding: 5rem 0;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h4 {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-hover {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2.5rem;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-hover {
    top: 0;
}

.service-hover ul {
    list-style: none;
    padding: 0;
}

.service-hover li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-hover li:last-child {
    border-bottom: none;
}


/* Process Section */

.process-section {
    background: var(--light-color);
    padding: 5rem 0;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-timeline:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.process-step.animate {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-medium);
}

.step-content h4 {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}


/* Testimonials Section */

.testimonials-section {
    background: var(--white);
    padding: 5rem 0;
}

.video-testimonial {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.video-testimonial video {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.testimonial-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.video-testimonial:hover .testimonial-overlay {
    transform: translateY(0);
}

.text-testimonials {
    position: relative;
    height: 400px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
    background: var(--light-color);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

.stars {
    margin-bottom: 1rem;
}

.stars i {
    color: var(--accent-color);
    margin-right: 0.25rem;
}

.testimonial-content p {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h6 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.testimonial-nav {
    text-align: center;
    margin-top: 2rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}


/* Gallery Section */

.gallery-section {
    background: var(--dark-color);
    padding: 5rem 0;
}

.gallery-section .section-title {
    color: var(--white);
}

.gallery-section .section-subtitle {
    color: var(--text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.gallery-item.large img {
    height: 100%;
    min-height: 600px;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-content {
    text-align: center;
    color: var(--white);
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.view-project {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.view-project i {
    transition: all 0.3s ease;
}

.gallery-item:hover .view-project i {
    transform: translateX(5px);
}


/* Contact Section */

.contact-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 5rem 0;
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .section-subtitle {
    color: var(--light-color);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(214, 158, 46, 0.3);
    color: var(--white);
}

.contact-info {
    margin-top: 3rem;
}

.contact-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-item h6 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--light-color);
    margin-bottom: 0;
}


/* Footer */

.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0 1rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer h6 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

.copyright {
    color: var(--text-light);
    margin-bottom: 0;
}


/* Animations */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}


/* Responsive Design */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .portfolio-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    .portfolio-item.large .portfolio-image {
        height: 300px;
        min-height: auto;
    }
    .process-timeline {
        flex-direction: column;
        gap: 2rem;
    }
    .process-timeline:before {
        left: 50%;
        top: 0;
        width: 2px;
        height: 100%;
        transform: translateX(-50%);
    }
    .contact-form-wrapper {
        padding: 2rem;
    }
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .hero-buttons .btn {
        width: 100%;
    }
}


/* Custom Scrollbar */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b7791f;
}


/* Loading Animation */

.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}


/* About Section Image Wrapper */

.about-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 500px;
    margin-top: 500px;
    /* moves the whole block up beside text */
}


/* Both images */

.about-image {
    position: relative;
    /* keep in normal flow so they sit together */
    display: inline-block;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 100px;
}


/* Back image (peeks out at bottom-right, always visible) */

.about-image.back {
    z-index: 1;
    position: absolute;
    margin-top: 10%;
    bottom: -20%;
    /* 20% of height sticks out */
    right: -20%;
    /* 20% of width sticks out */
    width: 130%;
    /* make it slightly larger */
    height: auto;
    object-fit: fill;
    filter: brightness(0.9);
    border-radius: 12px;
}


/* Shimmer + Glass Effect */

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    position: relative;
    display: block;
    animation: popUp 1s ease forwards;
    overflow: hidden;
}


/* Glass shimmer overlay */

.about-image::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient( 120deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.2) 100%);
    transform: rotate(25deg);
    animation: shimmer 3s infinite;
    pointer-events: none;
    overflow: hidden;
}


/* Pop-up animation */

@keyframes popUp {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Shimmer animation */

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    100% {
        transform: translateX(100%) rotate(25deg);
    }
}


/* Portfolio Section */


/* Showcase Section */


/* Showcase Section Background Image (Parallax) */


/* Ensure section allows background to show */


/* Parallax Background for Showcase Section */

.showcase-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    z-index: 1;
    /* Parallax Background */
    background: url("https://sumesshmenonassociates.com/wp-content/uploads/2024/12/small-living-room-apartment-ideas-banner.webp") no-repeat center center / cover;
    background-attachment: fixed;
    /* makes it look "still" */
}


/* Brick Background */


/* Brick Background - Full Screen */

.brick-background {
    position: fixed;
    /* full screen background */
    inset: 0;
    /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    /* more columns */
    grid-auto-rows: 40px;
    /* smaller row height for more bricks */
    gap: 2px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.08;
    /* very subtle transparency */
}


/* Each brick: colorless look */

.brick-background div {
    background: rgba(255, 255, 255, 0.2);
    /* light transparent block */
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.5);
}


/* Animation */

@keyframes build {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.2);
    }
    50% {
        opacity: 0.4;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.3);
    }
}


/* Animate class */

.brick-background div.animate {
    animation: build 3s ease-in-out forwards;
}


/* Titles */

.showcase-title {
    font-family: 'Work', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    color: hsl(218, 100%, 22%);
    margin-bottom: 1rem;
}

.showcase-subtitle {
    font-size: 1.125rem;
    color: hsl(0, 0%, 0%);
    margin-bottom: 3rem;
}


/* Grid */

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* Showcase Item */

.showcase-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.showcase-image {
    position: relative;
    height: 300px;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 15px;
}


/* Hover Overlay */

.showcase-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    padding: 1rem;
    border-radius: 15px;
}

.showcase-item:hover .showcase-hover {
    opacity: 1;
}

.showcase-item:hover img {
    transform: scale(1.1);
}


/* Content */

.showcase-content {
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.showcase-item:hover .showcase-content {
    transform: translateY(0);
}

.showcase-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.showcase-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
}


/* Round Button */

.showcase-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color, #d69e2e);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.showcase-btn:hover {
    background: #fff;
    color: var(--accent-color, #d69e2e);
    transform: scale(1.1);
}

.section-overlay {
    position: absolute;
    inset: 0;
    /* full cover */
    background: #e7e2e299;
    /* black overlay */
    z-index: -1;
    /* stay behind content */
}


/*project page start*/


/* Section base */


/* 🔹 Background Shapes */

.animated-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.15;
    animation: floatAcross 20s linear infinite;
}

.shape.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4a90e2;
    top: 20%;
    left: -100px;
    animation-duration: 18s;
}

.shape.square {
    width: 70px;
    height: 70px;
    background: #50e3c2;
    top: 50%;
    left: -120px;
    animation-duration: 22s;
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #f5a623;
    top: 70%;
    left: -150px;
    animation-duration: 25s;
}


/* Floating animation */

@keyframes floatAcross {
    from {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    to {
        transform: translateX(120vw) translateY(-50px) rotate(360deg);
    }
}

@media (max-width: 991px) {
    /* adjust breakpoint as needed */
    .hero-section {
        padding-top: 150px;
        /* same height as navbar */
    }
}